﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	xmlns:local="clr-namespace:EIA.SLClient.ProjectManage"
	x:Class="EIA.SLClient.ProjectManage.LoginStateView"
	d:DesignWidth="640" d:DesignHeight="80">
	<UserControl.Resources>
		<local:LoginStateViewModel x:Key="LoginStateViewModelDataSource" />
	</UserControl.Resources>

	<Grid x:Name="LayoutRoot" DataContext="{Binding Source={StaticResource LoginStateViewModelDataSource}}">
		<StackPanel HorizontalAlignment="Right" Margin="0,0,16,0" Orientation="Horizontal" VerticalAlignment="Center">
			<TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="{Binding LoginedStaff.StfName}" Foreground="White" VerticalAlignment="Center" FontSize="14.667"/>
			<HyperlinkButton Content="注销" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="10,0,0,0" FontSize="14.667" Command="{Binding LogoutCommand}"/>
			<HyperlinkButton Content="修改密码" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="10,0,0,0" FontSize="14.667" Command="{Binding ChangePasswordCommand}"/>
		</StackPanel>
	</Grid>
</UserControl>
